using Digitalmes.Domain.Entities.Sys;

namespace Digitalmes.Domain.Entities.Mes.Calendars;

/// <summary>
/// 排班成员
/// </summary>
[SugarTable("cal_member")]
public sealed class CalMember : AuditedEntity
{
    /// <summary>
    /// 班次 Id
    /// </summary>
    public long ShiftId { get; set; }

    /// <summary>
    /// 成员 Id
    /// </summary>
    public long MemberId { get; set; }

    /// <summary>
    /// 成员
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(MemberId))]
    public SysUser? Member { get; set; }
}
